<?php
$title = 'My homes';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>
<p>
    <a href="<?php echo $this->url('home', array('action'=>'add'));?>">Add new home</a>
</p>

<table class="table">
<tr>
    <th>Title</th>
    <th>Artist</th>
    <th>&nbsp;</th>
</tr>
<?php foreach ($homes as $home) : ?>
<tr>
    <td><?php echo $this->escapeHtml($home->title);?></td>
    <td><?php echo $this->escapeHtml($home->artist);?></td>
    <td>
        <a href="<?php echo $this->url('home',
            array('action'=>'edit', 'id' => $home->id));?>">Edit</a>
        <a href="<?php echo $this->url('home',
            array('action'=>'delete', 'id' => $home->id));?>">Delete</a>
    </td>
</tr>
<?php endforeach; ?>
</table>